<? 
include "conexao.php";
$res = mysql_query("SELECT u.usid FROM usuarios u WHERE usname = 'Rodrigo'");
//$user = mysql_fetch_array($res);
echo var_dump($res[0]);

?>